import request from "@/utils/request";
//订单页信息
export const getOrderList = () => request('/member/order/pre')
//提交订单
export const postOrder = (data) => request({
    url:'/member/order',
    method:'post',
    data
})
//获取订单详细
export const getOrderDetail = (id) => request(`/member/order/${id}`)
//获取订单列表
/*
params: {
	orderState:0,
  page:1,
  pageSize:2
}
*/


export const getUserOrder = (params) => {
    return request({
      url:'/member/order',
      method:'GET',
      params
    })
  }